﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Memcached.ClientLibrary;

namespace EmoneyWeiXinCommon
{
    public interface IMemcachedCache
    {
        MemcachedClient GetClient();

        void Add(string key, object obj, int hours, int minutes, int seconds);

        void Remove(string key);

        void FlushAll();

        T Get<T>(string key);
    }
}
